package cn.t.converter.sku;

import cn.t.core.converter.CoreDTOConverter;
import cn.t.dto.sku.CategoryDTO;
import cn.t.model.sku.CategoryDO;
import cn.t.request.CreateCategoryReq;
import cn.t.vo.sku.CategoryVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 商品类别表(Category)dto转domain
 *
 * @author t
 * @since 2024-06-11 10:34:56
 */
@Mapper(componentModel = "spring")
public interface CategoryDTOConverter extends CoreDTOConverter<CategoryDTO, CategoryDO> {

    List<CategoryVO> do2Vo(List<CategoryDO> list);

    CategoryDO createParam2do(CreateCategoryReq req);
}

